{"version":3,"file":"fieldslistfield.bundle.map.js","names":["this","BX","Landing","UI","exports","ui_designTokens","landing_loc","ui_draganddrop_draggable","landing_ui_panel_fieldspanel","landing_ui_component_listitem","landing_ui_component_actionpanel","landing_ui_field_textfield","main_core_events","landing_ui_form_formsettingsform","crm_form_client","landing_ui_field_listsettingsfield","landing_ui_panel_separatorpanel","landing_pageobject","main_loader","landing_ui_field_productfield","calendar_resourcebookinguserfield","socnetlogdest","ui_hint","landing_ui_component_iconbutton","main_core","landing_ui_field_basefield","_templateObject","_templateObject2","RequisiteSettingsField","_BaseField","babelHelpers","inherits","options","_this","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","setEventNamespace","subscribeFromOptions","events","Dom","replace","input","getSettingsLayout","createClass","key","value","getOptions","_this2","cache","remember","Tag","render","taggedTemplateLiteral","toConsumableArray","getCheckboxTree","keys","map","checkbox","layout","_this3","requisites","reduce","requisite","fieldsCheckbox","Field","Checkbox","selector","concat","id","compact","items","fields","field","name","label","checked","disabled","onChange","emit","onFieldSettingsLinkClick","event","preventDefault","stopPropagation","categoryCheckbox","contains","append","remove","fieldSettingsLink","Loc","getMessage","labelLayout","querySelector","getValue","length","set","Map","_this4","entries","acc","_ref","index","_ref2","slicedToArray","fieldsValue","push","includes","BaseField","_templateObject$1","_templateObject2$1","ownKeys","object","enumerableOnly","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","target","i","arguments","source","forEach","defineProperty","getOwnPropertyDescriptors","defineProperties","_classPrivateMethodInitSpec","obj","privateSet","_checkPrivateRedeclaration","add","privateCollection","has","TypeError","_classPrivateMethodGet","receiver","fn","_getFieldsPanelAllowedTypes","WeakSet","FieldsListField","assertThisInitialized","setLayoutClass","onSelectFieldButtonClick","bind","onSelectProductsButtonClick","onSelectSeparatorButtonClick","onItemRemove","onItemEdit","onDragEnd","onFormChange","itemOptions","addItem","actionPanel","ActionPanel","renderTo","left","text","onClick","right","draggable","Draggable","context","window","parent","container","getListContainer","dragElement","type","MOVE","offset","y","subscribe","createInput","getCrmFieldById","values","crmFields","category","FIELDS","find","currentField","getCrmFieldCategoryById","createItem","then","item","getLayout","prependItem","unshift","prepend","insertItemAfterIndex","splice","insertAfter","childNodes","isFieldAvailable","fieldId","Type","isStringFilled","startsWith","isPlainObject","getFieldItemTitle","crmField","crmFieldCategory","entity_name","caption","CAPTION","createResourceBookingFieldController","root","PageObject","getRootWindow","Calendar","ResourcebookingUserfield","initCrmFormFieldController","dict","node","listItemOptions","content","sourceOptions","removable","onRemove","onEdit","form","createFieldSettingsForm","isSeparator","title","description","editable","fieldController","editing","supportAutocomplete","autocompleteButton","IconButton","autocomplete","Types","user1Active","user1","style","opacity","cursor","getTarget","serialize","setType","actions","_listItem","ListItem","Promise","resolve","isFunction","booking","settings_data","getData","settings","data","error","_listItem2","String","getSeparatorTitle","isString","_crmField","listItem","createCustomPriceDropdown","Dropdown","changeablePrice","createProductDefaultValueDropdown","defaultValueField","enable","disable","createDefaultValueField","_this5","FormSettingsForm","serializeModifier","modifiedValue","Reflect","Text","decode","required","multiple","bigPic","isArrayFilled","selected","Runtime","clone","products","catalog","valueType","isArray","useCustomPrice","customPrice","contentTypes","presets","ProductField","iblockId","dictionary","oldCustomPrice","get","newCustomPrice","some","useCustomPriceField","setValue","replaceField","oldDefaultValue","newDefaultValue","hasLabel","TextField","textOnly","canBeRequired","canBeMultiple","hasStringDefaultValue","customPriceField","_customPriceField","listSettingsField","ListSettingsField","selectedItem","currentItem","currentDefaultValueField","valueTypes","selectedContentTypes","lastValue","contentTypesField","hasMessage","undefined","hint","encode","html","onValueChange","Hint","init","toBoolean","hasHint","supportHintOnFocus","hintOnFocus","addField","_this6","FieldsPanel","getInstance","isLeadEnabled","show","disabledFields","allowedTypes","_getFieldsPanelAllowedTypes2","selectedFields","getOriginalCrmFields","onFieldsSelect","_this7","preparingOptions","showLoader","FormClient","prepareOptions","formOptions","result","hideLoader","all","skipPrepare","_this8","promises","_this9","SeparatorPanel","separator","separatorPromise","_field$id$split","split","_field$id$split2","count","_this10","_event$getTarget","showSettingsPopup","setTimeout","settingsPopup","subscribeOnce","getSettings","join","setDescription","_this11","children","itemNode","itemNodeId","attr","getLoader","Loader","size","mode","top","loader","hide","DragAndDrop","Panel","Component","Event","Form","Crm","Ui"],"sources":["fieldslistfield.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,GAC3C,SAAUC,EAAQC,EAAgBC,EAAYC,EAAyBC,EAA6BC,EAA8BC,EAAiCC,EAA2BC,EAAiBC,EAAiCC,EAAgBC,EAAmCC,EAAgCC,EAAmBC,EAAYC,EAA8BC,EAAkCC,EAAcC,EAAQC,EAAgCC,EAAUC,GACle,aAEA,IAAIC,EAAiBC,EACrB,IAAIC,EAAsC,SAAUC,GAClDC,aAAaC,SAASH,EAAwBC,GAC9C,SAASD,EAAuBI,GAC9B,IAAIC,EACJH,aAAaI,eAAelC,KAAM4B,GAClCK,EAAQH,aAAaK,0BAA0BnC,KAAM8B,aAAaM,eAAeR,GAAwBS,KAAKrC,KAAMgC,IACpHC,EAAMK,kBAAkB,8DACxBL,EAAMM,qBAAqBP,EAAQQ,QACnChB,EAAUiB,IAAIC,QAAQT,EAAMU,MAAOV,EAAMW,qBACzC,OAAOX,CACT,CACAH,aAAae,YAAYjB,EAAwB,CAAC,CAChDkB,IAAK,aACLC,MAAO,SAASC,IACd,OAAOhD,KAAKgC,OACd,GACC,CACDc,IAAK,oBACLC,MAAO,SAASH,IACd,IAAIK,EAASjD,KACb,OAAOA,KAAKkD,MAAMC,SAAS,kBAAkB,WAC3C,OAAO3B,EAAU4B,IAAIC,OAAO3B,IAAoBA,EAAkBI,aAAawB,sBAAsB,CAAC,0EAA6E,8BAA+BxB,aAAayB,kBAA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